<?php

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;

class Talent extends Model
{

    //
    protected $table = 't_talent';

    protected $fillable = [
        'main_number','brief', 'description', 'career_path','coach_path' ,'guiding_strategy', 'parents_common_course',
        'kids_common_course', 'kids_personal_course','little_more', 'little_less'
    ];

    //    public function term() {
    //        return $this->belongsTo('App\Entities\Term', 'term_id');
    //    }

    //    public function course() {
    //        return $this->belongsTo('App\Entities\Course', 'course_id');
    //    }

    //    public function members() {
    //        return $this->hasMany('App\Entities\ClassMember','class_id', 'id');
    //    }
    public function relationships() {
        return $this->hasMany('App\Entities\TalentRelationship', 'talent_id', 'id');
    }
}
